/* id 唯一 单实例*/
export default class xID {
    seq = 1;
	static getInstance() {
		if(!this.instance) {
			this.instance = new xID();
		}
		return this.instance;
	}

	static getID() {
		let instance = xID.getInstance();
		instance.seq += 1;
		let prefix = 'HE'+Math.round((Math.random()+1)*100000);
		return prefix+(instance.seq+100000)
	}

}